package com.xuetang9.domain;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * @describe:巡检回执表类
 * @author: allende
 * @date: 2020/5/15 9:16
 * @vision: 1.0.0
 **/
public class RecepitInsp implements Serializable {

    /**
     * 巡检回执编号id
     */
    @Column(name = "id")
    private Integer id;

    /**
     * 任务编号
     */
    @Column(name = "task_id")
    private String taskId;

    /**
     * 杆塔缺陷
     */
    @Column(name = "pole_defect")
    private String poleDefect;

    /**
     * 获取编号
     * @return id编号
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置编号
     * @param id 编号
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取任务编号
     * @return task_id 任务编号
     */
    public String getTaskId() {
        return taskId;
    }

    /**
     * 设置任务编号
     * @param taskId 任务编号
     */
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    /**
     * 获取杆塔缺陷
     * @return pole_defect杆塔缺陷
     */
    public String getPoleDefect() {
        return poleDefect;
    }

    /**
     * 设置 杆塔缺陷
     * @param poleDefect 杆塔缺陷
     */
    public void setPoleDefect(String poleDefect) {
        this.poleDefect = poleDefect;
    }


    /**
     * 重写字符串
     * @return toString
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", taskId=").append(taskId);
        sb.append(", poleDefect=").append(poleDefect);
        sb.append("]");
        return sb.toString();
    }
}
